package com.cdu.supermarket.entity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * 商品属性选项
 */
@TableName("goods_attribute_option")
public class GoodsAttributeOption implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField("attr_id")
    private Long attrId;
    @TableField("option_value")
    private String optionValue;
    @TableField("sort_order")
    private Integer sortOrder;

    public GoodsAttributeOption() {
    }

    public GoodsAttributeOption(Long attrId, String optionValue) {
        this.attrId = attrId;
        this.optionValue = optionValue;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAttrId() {
        return attrId;
    }

    public void setAttrId(Long attrId) {
        this.attrId = attrId;
    }

    public String getOptionValue() {
        return optionValue;
    }

    public void setOptionValue(String optionValue) {
        this.optionValue = optionValue;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }
} 